/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : led.h
  * @brief          : Header for led.c file.
  *                   This file contains the functions prototypes and defines for LED control.
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __LED_H
#define __LED_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "main.h"

/* Exported constants --------------------------------------------------------*/
#define LED_ON    GPIO_PIN_RESET  /* 根据main.c中的初始化值，这里假设RESET是打开状态 */
#define LED_OFF   GPIO_PIN_SET    /* 根据main.c中的初始化值，这里假设SET是关闭状态 */

/* Exported functions prototypes ---------------------------------------------*/
void LED_Init(void);
void LED_Toggle(void);
void LED_On(void);
void LED_Off(void);
void LED_Blink(uint32_t delay_ms);

#ifdef __cplusplus
}
#endif

#endif /* __LED_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/